﻿@using BonjourQuotation.UI.Models.GuideModel
@model ManageGuidesGridViewModel
<div style="width:1021px; min-height:300px; max-height:442px; margin:auto; padding-top:30px; padding-bottom:30px; ">
    <table class="table table-bordered table-hover table-condensed" style="margin-bottom: -1px !important; width: 1000px;background-color:white;">
        <thead>
            <tr>
                <th width="25%;" class="GridHeaders">First Name</th>
                <th width="25%;" class="GridHeaders">Last Name</th>
                <th width="20%;" class="GridHeaders">City</th>
                <th width="10%;" class="GridHeaders">IsFind</th>
                <th width="10%;" class="GridHeaders">Active</th>
                <th width="10%;" class="GridHeaders">Details</th>
            </tr>
        </thead>
    </table>
    <div style="height:350px; overflow-y:auto;">
        <table class="table table-bordered table-hover table-condensed" style="width: 1000px; table-layout: fixed; background-color: white;">
            <tbody>
                @for (int ind = 0; ind < Model.Rows.Count; ind++)
                {
                    @Html.HiddenFor(model => model.Rows[ind].GuideID)
                    <tr>
                        <td width="25%;">@Html.LabelForModel(Model.Rows[ind].GuideName, new { @class = "table_inputs_250", @style = "text-align: left" })</td>
                        <td width="25%;">@Html.LabelForModel(Model.Rows[ind].GuideLastName, new { @class = "table_inputs_250", @style = "text-align: left" })</td>
                        <td width="20%;">@Html.LabelForModel(Model.Rows[ind].City, new { @class = "table_inputs_200", @style = "text-align: left" })</td>
                        <td width="10%;">@Html.LabelForModel(Model.Rows[ind].IsIsFind ? "Yes" : "No", new { @class = "table_inputs_100", @style = "text-align: left" })</td>
                        <td width="10%;">@Html.LabelForModel(Model.Rows[ind].IsActive ? "Yes" : "No", new { @class = "table_inputs_100", @style = "text-align: left" })</td>
                        <td width="10%;" style="text-align:center"><button class="btn14 btn60 btnheight22" type="button" onclick="ShowGuide('@Model.Rows[ind].GuideID')">Details</button></td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
<button class="btn14 btn60" style="margin-right: 98px; margin-top: -5px; float:right;@(@Model.IsCanView?"":"display:none")" type="button" id="GuideMoreBtn">More</button>
